package com.security.config;

import com.security.properties.img.ImageCodeProperties;
import com.security.properties.sms.SmsCodeProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
  * @Description: 把这个两个当成配置属性
  *
  * @author lwj
  * @date 2020/4/25 上午10:17
  */
@ConfigurationProperties(prefix = "com.security")
public class ValidateCodeProperties {

    private ImageCodeProperties image = new ImageCodeProperties();
    private SmsCodeProperties sms = new SmsCodeProperties();

    public ImageCodeProperties getImage() {
        return image;
    }

    public void setImage(ImageCodeProperties image) {
        this.image = image;
    }

    public SmsCodeProperties getSms() {
        return sms;
    }

    public void setSms(SmsCodeProperties sms) {
        this.sms = sms;
    }
}
